package org.dfg.corejava.designPattern.state;

import java.util.HashMap;

public class StateB implements State {

	@Override
	public void handle(Context ctx) {
		if (ctx.getId() == 1) {
			System.out.println("状态1");
			ctx.setId(3);
			ctx.setState(new StateC());
		}
	}

}
